package com.sphd.emanu.activity.topupservice;

import com.sphd.emanu.mvp.BasePresenter;
import com.sphd.emanu.mvp.BaseView;
import com.sphd.emanu.pojo.market.Deposit;

import java.math.BigDecimal;
import java.util.List;

import cn.pedant.SweetAlert.SweetAlertDialog;
import retrofit2.http.Query;

/**
 * MVPPlugin
 * 邮箱 784787081@qq.com
 */

public class TopupserviceContract {
    interface View extends BaseView {

        void setDeposList(List<Deposit> depositList);

        void recRes(int res);

        void upRes(int res);

        void delRes(int res, Integer postion, SweetAlertDialog sweetAlertDialog);

        void upIsRes(int res);
    }

    interface Presenter extends BasePresenter<View> {
        void selectDeposit(int org);

        
        void updateIsDeposit(Integer configId,Boolean isDeposit);

        void deleteDeposit(int id, Integer postion, SweetAlertDialog sweetAlertDialog);

        ;

        void updateDeposit(int id, int org, Boolean enable, BigDecimal threshold
                , BigDecimal amount);

        void addDeposit(int org, Boolean enable, BigDecimal threshold
                , BigDecimal amount);
    }
}
